package com.wanxi.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.wanxi.util.IdJsonSerialize;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.data.elasticsearch.annotations.Setting;

/**
 * @author 杨金乾
 */
@Data
public class MessageModel {
    private String name;
    private String phone;
    private String content;
    @JsonSerialize(using = IdJsonSerialize.class)
    private Long id;
    private Integer page;
    private Integer limit;
}
